﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Quester.Models
{
    public class TestVModel
    {
        [Required]
        [HiddenInput(DisplayValue = false)]
        public Guid TestID { get; set; }
        
        [Required]
        [HiddenInput(DisplayValue = false)]
        public Guid CreatorID { get; set; }
        
        [Required]
        [HiddenInput(DisplayValue = false)]
        public Guid EditorID { get; set; }
        

        [Display(Name = "Автор")]
        public String CreatorName { get; set; }


        [Display(Name = "Редактор")]
        public String EditorName { get; set; }

        [Required]
        [Display(Name="Створений")]
        [DataType(DataType.DateTime)]
        public DateTime CreationDate { get; set; }

        [Required]
        [Display(Name = "Востаннє редагувався")]
        [DataType(DataType.DateTime)]
        public DateTime LastModDate { get; set; }

        [Required]
        [Display(Name="Назва")]
        public string TestName { get; set; }

        [Required]
        [Display(Name = "Предмет")]
        public string Subject { get; set; }


        [HiddenInput(DisplayValue = false)]
        public List<QuestionVModel> Questions { get; set; }
    }
}